package cn.easybuy.service;

import java.util.List;

import cn.easybuy.entity.MyOrder;
import cn.easybuy.entity.Order1;

public interface BuyCarService {
		//閫氶敓鏂ゆ嫹閿熺煫浼欐嫹閿熸枻鎷烽敓绐栴垽鎷烽敓鏂ゆ嫹閿熸枻鎷烽敓杈冿拷
		public List<MyOrder> getBuyCarlistByLoginName(String loginName) throws Exception;
		//閿熸枻鎷烽敓鏂ゆ嫹閿熸枻鎷烽敓鏂ゆ嫹閿熸枻鎷锋伅
		public int setBuyCar(List<MyOrder> buyCar) throws Exception;
		//閫氶敓鏂ゆ嫹閿熺煫浼欐嫹閿熸枻鎷烽敓绐栴垽鎷烽敓鏂ゆ嫹閿熸枻鎷烽敓鏂ゆ嫹閿燂拷
		public int getBuyCarCountByLoginName(String loginName) throws Exception;
		//閸掔娀娅庣拹顓犲⒖鏉烇妇娈戦弻鎰嚋娣団剝浼�
		public  int  delId(int id) throws Exception;
		//閺囧瓨鏌婄拹顓犲⒖鏉烇缚淇婇幁锟�		
		public  int  updateList(List<MyOrder> list) throws Exception;
		//删除某个用户的购物车信息
		public int delAll(String userName) throws Exception;
		//查询商品的库存
		public  int stock(int id) throws Exception;
}
